<?php
try {   
        $dbName = "sqlsrv:Server=127.0.0.1,1433;
		Database=test";   
        $dbUser = "jiajun";   
        $dbPassword = "jiajun00";   
        $db = new PDO($dbName, $dbUser, $dbPassword);       
        if ($db)   
        {       
                  echo "database connect succeed.<br />";   
        }
}
catch (PDOException $e){   
       $content = iconv("UTF-8","gbk",$e->getMessage());    
       echo   $content . "<br />";
}
	   echo "Hello World!";

?>